
function  changeto(event)
{
var  highlightcolor='c1ebff';
var source=event.target || event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement || source.parentNode;
source=source.parentElement || source.parentNode;
var cs  =  source.children || source.childNode;

if  (cs[1].style.backgroundColor!=highlightcolor)
for(var i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=highlightcolor;
}
}

function  changeback(event){
	var source=event.target || event.srcElement;
	if  (source.tagName=="TR"||source.tagName=="TABLE")
	return;
	while(source.tagName!="TD")
	source=source.parentElement || source.parentNode ;
	source=source.parentElement || source.parentNode;
	var cs  =  source.children || source.childNode;
	
	for(var i=0;i<cs.length;i++){

	cs[i].style.backgroundColor="";

	}
}
function  clickto(event)
{
	var source=event.target || event.srcElement;
	if  (source.tagName=="TR"||source.tagName=="TABLE")
	return;
	while(source.tagName!="TD")
	source=source.parentElement || source.parentNode ;
	source=source.parentElement || source.parentNode;
	var cs  =  source.children || source.childNode;

	document.getElementById("typename").value = cs[2].childNodes[0].childNodes[0].innerHTML;
	document.getElementById("typeattr").value = cs[3].childNodes[0].childNodes[0].innerHTML;
	
}